<?php

use plugin\laoha\app\admin\controller\CateController;
use plugin\laoha\app\admin\controller\PostController;
use plugin\laoha\app\admin\controller\CommentController;
use plugin\laoha\app\admin\controller\NavController;
use plugin\laoha\app\admin\controller\AttachController;

return [

    [
        'title' => '前台管理',
        'key' => 'laoha',
        'icon' => 'layui-icon-align-left',
        'weight' => 750,
        'type' => 0,
        'children' => [
            [
                'title' => '导航管理',
                'key' => NavController::class,
                'href' => '/app/laoha/admin/nav',
                'type' => 1,
                'weight' => 0,
            ],		
            [
                'title' => '分类管理',
                'key' => CateController::class,
                'href' => '/app/laoha/admin/cate',
                'type' => 1,
                'weight' => 0,
            ],
            [
                'title' => '附件管理',
                'key' => AttachController::class,
                'href' => '/app/laoha/admin/attach',
                'type' => 1,
                'weight' => 0,
            ]
        ]
    ],
    [
        'title' => '内容管理',
        'key' => 'laohacms',
        'icon' => 'layui-icon-component',
        'weight' => 730,
        'type' => 0,
        'children' => [
            [
                'title' => '文章管理',
                'key' => PostController::class,
                'href' => '/app/laoha/admin/post',
                'type' => 1,
                'weight' => 0,
            ],
            [
                'title' => '文章评论',
                'key' => CommentController::class,
                'href' => '/app/laoha/admin/comment',
                'type' => 1,
                'weight' => 0,
            ]
        ]
    ]
];